(function() {
   function $(id) {
      return document.getElementById(id);
   }
   function addEvent(node , type , fn) {
       if(node.addEventListener) {
           node.addEventListener(type , fn , false);
       } else if(node.attachEvent){
           node.attachEvent("on" + type , fn);
       } else {
           node["on" + type] = fn;
       }
   };
   var form = $("so360form");
   if(!form) {
       return;
   }
   addEvent(form , "submit" , function() {
       form.src.value = "zz_" + window.location.host.replace(/\./g , "_");
       return true;
   });
})();
